TURN WORD WRAP ON

This PulseGenerate example was tested with 3100-850A03 driver version
in Win2KSP1 with KPCI-3116 board.  Delphi 5.0 Professional was used.

The goal is to demonstrate how an active low pulse
of programmable duration can be generated in response
to an external trigger.

The internal timebase of boards covered by KPCI3100 driver is 20MHz.

The pulse generated by any of the 4 16bit counters counting at 20MHz
amounts to only a little more than 3 msec total time.

If the pulse to be generated is longer than 3 msec, use of a slower
time base is required.

A slower timebase can be generated from the 20MHz crystal by use of one
CT channel for squarewave generation.

The pulse generation CT channel can then use this slower squarewave instead of
the internal 20MHz timebase.

If the CT channels involved in this task are sequential, then no jumper
wire is required to feed input of channel N with the output from channel N-1.

This example programs CT0 for squarewave mode (10KHz).  CT1 is programmed
to generate active low pulses in response to a rising edge at it's 
gate.  CT1 input is feed via internal cascade by output of CT0.


